package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by 10520_000 on 10/30/14.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "binh_luan")
@NamedQueries({
        @NamedQuery(name = "getProductComment", query = "SELECT c FROM BinhLuan c") ,
})
public class BinhLuan implements Serializable {
    public static final String GET_INFO_PRODUCTCOMMENT = "getProductComment";

    @Id
    @Column(name = "MA_BL")
    private String maBL;

    @ManyToOne
    @JoinColumn(name = "MA_SP")
    private SanPham sanPham;

    @Column(name = "TEN")
    private String ten;

    @Column(name = "EMAIL")
    private String email;

    @Column(name = "NOI_DUNG")
    private String noiDung;

    public String getMaBL() {
        return maBL;
    }

    public void setMaBL(String maBL) {
        this.maBL = maBL;
    }

    public SanPham getSanPham() {
        return sanPham;
    }

    public void setSanPham(SanPham sanPham) {
        this.sanPham = sanPham;
    }

    public String getTen() {
        return ten;
    }

    public void setTen(String ten) {
        this.ten = ten;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNoiDung() {
        return noiDung;
    }

    public void setNoiDung(String noiDung) {
        this.noiDung = noiDung;
    }
}
